use warnings;
use Test::More 'no_plan';
use Inline C;

is(poll_req_t(0), 0, 'test mac_poll_req().');
is(poll_req_t(1), 0, 'test mac_poll_req().');
is(poll_req_t(2), 0, 'test mac_poll_req().');
is(poll_req_t(3), 0, 'test mac_poll_req().');
is(poll_req_t(4), 0, 'test mac_poll_req().');
is(poll_req_t(5), 0, 'test mac_poll_req().');
is(poll_req_t(6), 0, 'test mac_poll_req().');
is(poll_req_t(7), 0, 'test mac_poll_req().');
is(poll_req_t(8), 0, 'test mac_poll_req().');
is(poll_req_t(9), 0, 'test mac_poll_req().');
is(poll_req_t(10), 0, 'test mac_poll_req().');

__END__
__C__

#include "../../../../mac/mac.h"

#include "mac_poll_test.c"
#include "../../../../mac/mac_poll.c"
#include "../../../../mac/mac_tx.c"
#include "../../../../mac/mac_gen.c"
#include "../../stub/mac_rf_stub.c"
#include "../../../../mac/mac_phy.c"
#include "../../stub/timer_stub.c"
#include "../../../../mac/mac_info.c"
#include "../../../../mac/mac_parse.c"
#include "../../../../mac/mac_retry.c"
#include "../../../../mac/mac_indir.c"
#include "../../../../mac/mem.c"
#include "../../../../mac/list.c"
#include "../../../../mac/buf.c"

int poll_req_t(unsigned char handle)
{
    mac_init_test();

    mac_poll_req_t req;
    req.handle = handle;

    return poll_req_test(&req);
}

